<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element"> <span>
                            <img alt="image" class="img-circle" src="/vendor/AdminInspinia/img/profile_small.jpg" />
                             </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">David Williams</strong>
                             </span> <span class="text-muted text-xs block">Art Director <b class="caret"></b></span> </span> </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="profile.html">Profile</a></li>
                        <li><a href="contacts.html">Contacts</a></li>
                        <li><a href="mailbox.html">Mailbox</a></li>
                        <li class="divider"></li>
                        <li><a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">登出</a></li>
                    </ul>
                </div>
                <div class="logo-element">
                    LA+
                </div>
            </li>
            @isset($treeMenuList)
                @foreach($treeMenuList as $level1)
                    @isset($level1['child'])
                    <li>
                        <a href="@isset($level1['perm_name']){{ route($level1['perm_name'], $level1['route_params']) }}@endisset" date-route="{{$level1['perm_name']}}">@isset($level1['icon_class'])<i class="{{ $level1['icon_class'] }}"></i>@endisset <span class="nav-label">{{ $level1['menu_name'] }}</span>
                        <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            @foreach($level1['child'] as $level2)
                                <li>
                                    <a href="@isset($level2['perm_name']){{ route($level2['perm_name'], $level2['route_params']) }}@endisset" date-route="{{$level2['perm_name']}}">
                                        @isset($level2['icon_class'])<i class="{{ $level2['icon_class'] }}"></i>@endisset {{ $level2['menu_name'] }}
                                        @isset($level2['child'])<span class="fa arrow"></span>@endisset
                                    </a>
                                    @isset($level2['child'])
                                        <ul class="nav nav-third-level">
                                            @foreach($level2['child'] as $level3)
                                            <li>
                                                <a href="@isset($level3['perm_name']){{ route($level3['perm_name'], $level3['route_params']) }}@endisset" date-route="{{$level3['perm_name']}}">
                                                    @isset($level3['icon_class'])<i class="{{ $level3['icon_class'] }}"></i>
                                                    @endisset {{ $level3['menu_name'] }}</a>
                                            </li>
                                            @endforeach
                                        </ul>
                                    @endisset
                                </li>
                            @endforeach
                        </ul>
                    </li>
                    @endisset
                @endforeach
            @endisset
        </ul>

    </div>
</nav>